package com.lbc.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @author xyl
 * @date 2021-03-22 19:10
 */
@ApiModel(value = "登录dto",description = "登录时需要携带的参数")
@Data
public class AdminLoginDTO {
    @NotBlank(message = "邮箱不能为空!")
    @Email(message = "邮箱格式有误!")
    @ApiModelProperty(value = "用户名",required = true)
    private String email;
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
}
